import request from '@/utils/request'
import qs from 'qs'

export function findListByPage(params) {
  return request({
    url: '/api/data/transfer/list' + '?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}

export function download(params) {
  return request({
    url: '/api/data/transfer/list/exportDataTransfer?pkIds=' + params.join(','),
    method: 'get',
    responseType: 'blob'
  })
}

export default {
  findListByPage,
  download
}
